<template>
    <nav-bar class="pdcnav-box">
      <div slot="left" class="left" @click="toback">
        <van-icon name="arrow-left" />
      </div>
      <div slot="center" class="center">发布动态</div>
      <div slot="right" class="right" @click="publicdynamic">
        发表
      </div>
    </nav-bar>
</template>

<script>
import NavBar from 'components/common/navbar/NavBar'

export default {
    name: '',
    components:{
      NavBar
    },
    methods:{
      publicdynamic(){
        this.$emit('publicdynamic')
      },
      toback(){
        this.$router.back()
      }
    }
}
</script>

<style scoped>
.center {
  color: #fff;
  font-size: 16px;;
}
.left,
.right {
  font-size: 23px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.right {
  font-size: 14px;
}
</style>